package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void delete(Long id);
    void save(Employee employee, Long[] ids);
    Employee selectById(Long id);
    List<Employee> selectAll();
    void update(Employee employee, Long[] ids);

    PageInfo<Employee> query(QueryObject qo);

    Employee selectByName(String name,String password);

    List<Permission> selectAllPermission(Long id);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;
}
